Ext.define('AmpleHarvest.objects.basicList.basicList',
{
    extend          : 'Ext.grid.Panel',
    alias           : 'widget.ampleharvest-objects-basiclist-basiclist',
    store			: [],
    columns			: [],
    listeners       :
    {
    	dataResponse	: function(obj_data)
    	{
    		console.log('loading list data');
    		console.log(obj_data);
    		console.log(this.getStore());
    		this.getStore().getProxy().url = this.str_data_source;
    		this.getStore().loadRawData(obj_data);
    	}
    },
    
    initComponent   : function()
    {
    	this.m_obj_util = Ext.create('AmpleHarvest.util.utility');

        this.callParent();
        
        this.m_obj_util.AHcaller = this;
//		this.m_obj_util.listenerName = 'handleListResponse';

        console.log(this.m_obj_util.AHcaller);
        
        this.getStore().getProxy().url = this.str_data_source;
        
        this.getStore().load();
        
//		this.m_obj_util.getData(this.str_data_source, {},{},'GET', {}, {});
        
    }
});


